#!/bin/bash

infile="$1"

if test -z "$infile"; then
  echo "pass input file"
  exit 1
fi

ffmpeg -i "$infile" -af "volumedetect" -f null /dev/null 2>&1 | grep max_volume | cut -f 2 -d']'|cut -f 2 -d':' | cut -f 2 -d ' ' | tr -d ' '


#src: https://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg

